package org.example.iocdemo.ioc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * Description:做渐进主义的改良派,不做完没注意的速成派
 * User: XALEXC
 * Date: 2024-11-04
 * Time: 16:23
 */
@Service
@ResponseBody
public class TestController {
    @RequestMapping("/test")
    public String test() {
        return "测试Controller与其他注解的区别";
    }
}
